<?php
class Staff{
    var $staffId;
    var $staffName;
    var $staffPass;
    var $staffDateOfBirth;
    var $staffRoleMapping;
    var $courseTeachingSession;
    var $trainningClass;
    var $facultyManagingBoard;
    var $departmentManagingBoard;
    
    function Staff($sId,$sName,$sDateOfBirth){
        $this->staffId=$sId;
        $this->staffName=$sName;
        $this->staffDateOfBirth=$sDateOfBirth;
    }
    function getStaffId(){
        return $this->staffId;
    }
    function setStaffID($newStaffID){
        $this->staffId = $newStaffID;
    }  
    function getStaffName(){
        return $this->staffName;
    }
     function setStaffName($newStaffName){
       $this->staffName = $newStaffName;
    }
     function getStaffDateOfBirth(){
        return $this->staffDateOfBirth;
    }
    function setStaffDateOfBirth($newStaffDateOfBirth){
        $this->staffDateOfBirth = $newStaffDateOfBirth;
    } 
    
    function checkLogin($staffName,$staffPass){
        $sql = "select * from staff where STAFF_ID like '".$staffName."' and STAFF_PASSWORD like '".$staffPass."'";
        $query=mysql_query($sql);  
        $check = false;
        while(mysql_fetch_array($query))
            {   $check = true; }

        return $check;
    }
    
}



?>